/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package afroschool.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author AUTRES
 */
@Entity
@Table(name = "evaluation")
@NamedQueries({@NamedQuery(name = "Evaluation.findByIdEvaluation", query = "SELECT e FROM Evaluation e WHERE e.idEvaluation = :idEvaluation"), @NamedQuery(name = "Evaluation.findByIdCours", query = "SELECT e FROM Evaluation e WHERE e.idCours = :idCours"), @NamedQuery(name = "Evaluation.findByIdSession", query = "SELECT e FROM Evaluation e WHERE e.idSession = :idSession"), @NamedQuery(name = "Evaluation.findById", query = "SELECT e FROM Evaluation e WHERE e.id = :id"), @NamedQuery(name = "Evaluation.findByClaid", query = "SELECT e FROM Evaluation e WHERE e.claid = :claid"), @NamedQuery(name = "Evaluation.findByDate", query = "SELECT e FROM Evaluation e WHERE e.date = :date")})
public class Evaluation implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "idEvaluation", nullable = false)
    private Integer idEvaluation;
    @Column(name = "idCours")
    private Integer idCours;
    @Column(name = "idSession")
    private Integer idSession;
    @Column(name = "id")
    private Integer id;
    @Column(name = "Cla_id")
    private Integer claid;
    @Column(name = "date")
    @Temporal(TemporalType.TIMESTAMP)
    private Date date;

    public Evaluation() {
    }

    public Evaluation(Integer idEvaluation) {
        this.idEvaluation = idEvaluation;
    }

    public Integer getIdEvaluation() {
        return idEvaluation;
    }

    public void setIdEvaluation(Integer idEvaluation) {
        this.idEvaluation = idEvaluation;
    }

    public Integer getIdCours() {
        return idCours;
    }

    public void setIdCours(Integer idCours) {
        this.idCours = idCours;
    }

    public Integer getIdSession() {
        return idSession;
    }

    public void setIdSession(Integer idSession) {
        this.idSession = idSession;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getClaid() {
        return claid;
    }

    public void setClaid(Integer claid) {
        this.claid = claid;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idEvaluation != null ? idEvaluation.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Evaluation)) {
            return false;
        }
        Evaluation other = (Evaluation) object;
        if ((this.idEvaluation == null && other.idEvaluation != null) || (this.idEvaluation != null && !this.idEvaluation.equals(other.idEvaluation))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "afroschool.beans.Evaluation[idEvaluation=" + idEvaluation + "]";
    }

}
